<!DOCTYPE HTML>
<HTML>
<HEAD>
</HEAD>
<BODY>
<div id="A" style="width:200px;height:100px;background: gold;">
</div>
<div id="B" style="width:120px;height:40px;background: silver;">
	<script language="JavaScript">
		document.write("content");
	</script>
</div>
<button onclick="copy()">copy</button>
</BODY>
</HTML>
<script language="JavaScript">
function copy(){
	var A=document.getElementById('A');
	A.appendChild(document.getElementById('B').cloneNode(true));
}
</script>